home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-21 | 1.3 KB | 44 lines | [TEXT/ttxt] |
- -- Filename:
- -- MEDIA.SX
-
- -- Other Files Required:
- -- 1000.BMP, 1001.BMP, 1002.BMP, 1003.BMP
-
- -- Purpose:
- -- Demonstrates a simple working document
-
- -- Specialized Classes:
- -- None
-
- -- Instructions to User:
- -- This script loads in the media, stores it, and creates a proxy for it. To
- -- create the titlecontainer, run the loadme.sx script.
- --
- -- When the jailbird.sxt title runs a window will appear with the title page.
- -- Click any where in this page to go to the next page. Subsequent pages will
- -- contain forward and backward buttons for traversing the document.
-
- -- Author:
- -- Kim Swix
-
- ------------------------------------------------------------------------
- in module docModule
-
- -- ********************************************************************
- -- Load in the bitmaps and create global proxys for them
- -- ********************************************************************
- global bmList := #("1000.bmp", "1001.bmp", "1002.bmp", "1003.bmp")
-
- function loadAndCreateProxy item ->
- ( local st, bm
- st := getstream (spawn thescriptdir "media") item @readable
- bm := importMedia theimportexportengine st @image @dib @bitmap
- add docCont (item as string) bm
- update docCont
- makePurgeable bm
- )
-
- forEach bmList loadAndCreateProxy undefined
-
- bmList := undefined
-